using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AudioPlayer : MonoBehaviour
{
    public static AudioPlayer Instance { get; private set; }

    private AudioSource _audio;


    private void Awake()
    {
        Instance = this;

        _audio = GetComponent<AudioSource>();
    }

    public void PlaySound(AudioClip clip)
    {
        _audio.PlayOneShot(clip);
    }
}
